/* 
 * Enterprise Library Extensions - DI + ORM.
 * Copyright (C) 2006
 *
 * GNU General Public License
 *
 * This program is free software; you can redistribute 
 * it and/or modify it under the terms of the GNU General Public License 
 * as published by the Free Software Foundation; either version 2 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 * See the GNU General Public License for more details.
 */
using System;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder;
using ELE.EnterpriseLibrary.Data.Configuration;

namespace ELE.EnterpriseLibrary.Naming
{
  /// <summary>
  /// A general factory for <see cref="NamingContextManager"/>s from a configuration source.
  /// </summary>
  public class NamingContextManagerFactory: LocatorNameTypeFactoryBase<NamingContextManager>
	{
		/// <summary>
    /// <para>Initializes a new instance of the <see cref="NamingContextManagerFactory"/> class 
		/// with the default configuration source.</para>
		/// </summary>
		protected NamingContextManagerFactory()
			: base()
		{
		}
 
		/// <summary>
    /// <para>Initializes a new instance of the <see cref="NamingContextManagerFactory"/> class 
		/// with the given configuration source.</para>
		/// </summary>
    /// <param name="configurationSource">The configuration source that contains information on how to build the <see cref="NamingContextManager"/> instances</param>
    public NamingContextManagerFactory(IConfigurationSource configurationSource)
			: base(configurationSource)
		{ }
	}
}
